package chaoyue.study.controller;

import chaoyue.study.dto.UserQueryParam;
import chaoyue.study.vo.User;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Tag(name = "用户管理", description = "平台用户管理相关API接口")
@RestController
public class UserController {
    @GetMapping("getById")
    @Operation(summary = "获取用户详情", description = "根据ID查询用户详细信息")
    public User getById(@Parameter(description = "用户ID", required = true) Long id) {
        return null;
    }

    @PostMapping("getList")
    @Operation(summary = "获取用户列表", description = "查询所有用户信息")
    public List<User> getUserList(@RequestBody UserQueryParam param) {
        return null;
    }
}
